package com.zzx.exception;

import com.alibaba.fastjson.JSON;
import com.zzx.util.ResponseResult;
import com.zzx.util.ResponseWrite;
import lombok.Data;

/**
 * 自定义异常类
 */
@Data
public class SystemException extends RuntimeException {
    private Integer status;
    private String describe;
    private ExceptionState msg;
    public SystemException(ExceptionState msg){
        super(msg.getDescribe());
        this.status = msg.getStatus();
        this.describe = msg.getDescribe();
        this.msg = msg;
    }
    public SystemException(String msg){
       super(msg);
    }


}
